package com.dxx.cloud.admin.module.request;

import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.math.BigDecimal;

@Schema(description = "添加商品库存变更module")
@Data
public class GoodsInventoryChangeAddModule {

    @Schema(description="商户id",example="1")
    private Long merId;

    @Schema(description="门店id",example="1")
    private Long shopId;

    @Schema(description="类型id",example="1")
    @JsonIgnore
    private Integer typeId;

    @Schema(description="商品id",example="1")
    @NotNull
    private Integer goodsId;

    @Schema(description="商品名称")
    @JsonIgnore
    private String goodsName;

    @Schema(description="活次直冻")
    private String goodsState;

    @Schema(description="条形码")
    private String barCode;

    @Schema(description="商品规格id",example="1")
    @NotNull
    private Integer goodsSizeId;

    @Schema(description="商品规格名")
    @JsonIgnore
    private String unit;

    @Schema(description = "皮重", example = "1")
    private BigDecimal tare;

    @Schema(description = "毛重", example = "1")
    private BigDecimal grossWeight;

    @Schema(description="水分")
    private BigDecimal waterPercent;

    @Schema(description = "净重", example = "1")
    private BigDecimal netWeight;

    @Schema(description="总件数(在有重量时传入)")
    private BigDecimal weightNumber;

    @Schema(description = "单价", example = "1")
    private BigDecimal unitPrice;

    @Schema(description="变化数量:个数或重量",example="1.265")
    private BigDecimal number;

    @Schema(description="变化前库存")
    @JsonIgnore
    private BigDecimal inventoryBefore;

    @Schema(description="变化后库存")
    @JsonIgnore
    private BigDecimal inventoryAfter;


}
